/*
 * @Author: zhangweinan
 * @Date: 2022-11-16 09:45:46
 * @LastEditors: zhangweinan
 * @LastEditTime: 2023-02-10 11:06:31
 * @Description: file content
 * @FilePath: \front-end-of-task-center\src\api\system\count.js
 */
import request from '@/utils/request'

//获取角色数量
export function getRoleCount(query) {
  return request({
    url: `/system/role/list-all-count?roleIds=${query}`,
    method: 'get',
  })
}
//获取部门人数数量
export function getDeptCount(query) {
  return request({
    url: `/system/dept/list-all-count?deptIds=${query}`,
    method: 'get',
  })
}
//获取岗位人数数量
export function getPostCount(query) {
  return request({
    url: `/system/post/list-all-count?postIds=${query}`,
    method: 'get',
  })
}
//获取用户组用户的数量
export function getUserGroupCount(query) {
  return request({
    url: `/bpm/user-group/list-all-count?memberUserIds=${query}`,
    method: 'get',
  })
}